package ExamLab.Test2;

public class Garb {
	Garb g;

	public Garb(Object g) {
		this.g = (Garb) g;
	}

	public static void main(String args[]) {
		Garb gb1 = new Garb(new Garb(new Garb(null)));
		gb1.g.g = new Garb(new Garb(null));
		Garb gb2 = new Garb(new Garb(new Garb(gb1)));
		gb2.g = gb1.g;
		System.gc();
	}
}